package com.acegear.horizon.domain.repository.jpa;

import com.acegear.horizon.domain.models.jpa.PasswordAuth;

import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

/**
 * Created by wangsike on 2016/12/10.
 */
public interface PasswordAuthRepository extends CrudRepository<PasswordAuth, Long> {
    Optional<PasswordAuth> findByUserId(Long userId);

    Optional<PasswordAuth> findByUsername(String username);
}
